<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>Topic</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="../css/conmon3/Topic.css" />
	</head>

	<body>
		<div class="web">
			<!--头部-->
			<header>
				<div class="header_a">
					<div class="jt fl">
						<a href=""><img src="../img/img3/113.png" /></a>
					</div>
					<div class="ss fr">
						<a href=""><img src="../img/img3/312-1.png" /></a>
					</div>
					<div class="logo">
						<a href="../index.html"><img src="../img/img3/logo.png" /></a>
					</div>
				</div>

			</header>

			<!--中间部分-->
			<section id="s">
				<div class="top">
					政治
					<p>四月 20</p>
				</div>
				<div class="wenz">
					<a href="">服务成员留在黑暗的服务成员留在黑暗的健康误区
						<p>纽约时报<span>5分钟前</span></p>
					</a>
				</div>
				<div class="tup">
					<img src="../img/img3/16_02.jpg" />
				</div>

				<div class="wenz1">
					<a href="">联邦调查局逮捕人在反恐扫描反恐扫逮捕
						<p>卫报<span>15分钟前</span></p>
					</a>
				</div>
				<div class="wenz1">
					<a href="">沙勒罗瓦引发争论撤销后，照片奖照片奖 照片奖
						<p>明镜<span>20分钟前</span></p>
					</a>
				</div>
				<div class="last clearfix">
					<div class="tupi fl">
						<a href=""><img src="../img/img3/21.png" /></a>
					</div>
					<div class="fl new">
						<a href="">障碍仍是美国企业美国企 美国企业在古巴<p>BBC 新闻 <span>1小时前</span></p></a>
					</div>
				</div>

			</section>
		</div>
        <script src="../js/jquery-1.9.1.min.js"></script>
		<script>
			document.body.style.height = window.innerHeight + "px";
			/*动态改变根元素字体大小*/
			function recalc() {
				var clientWidth = document.documentElement.clientWidth;
				if(!clientWidth) return;
				document.documentElement.style.fontSize = 40 * (clientWidth / 750) + 'px';
				// 字体大小  =1个rem单位表示多少个像素*(设备宽度    /  设计图宽度)
			}

			function initRecalc() {
				recalc();
				var resizeEvt = 'osrientationchange' in window ? 'orientationchange' : 'resize';
				if(!document.addEventListener) return;
				window.addEventListener(resizeEvt, recalc, false);
				document.addEventListener('DOMContentLoaded', recalc, false);
			}
			initRecalc();
			
				$('section').scroll(function(){
					if($('section').scrollTop() >50 ){
						$('header').addClass('header-change');
					}else {
						$('header').removeClass('header-change');
					}
				});
				
			
		</script>
	</body>

</html>